<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>活动信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="../../plugins/mui/mui.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="../../css/literary/forecast_detail.css">
</head>
<body>
<header class="mui-bar mui-bar-nav header">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">活动信息</h1>
</header>
<div class="section">
    <!--<h2>活动预告-本周预告</h2>
    <p>2017-05-18</p>
    <div id="main">
            活动详细
    </div>-->
</div>

<script src="../../plugins/mui/mui.min.js"></script>
<script src="../../plugins/jquery/jquery-3.1.0.min.js"></script>
<script src="../../js/getApiToken.js"></script>
<script src="../../js/md5.js"></script>
<script>
    mui.init();
    mui.plusReady(function(){
        var tag_id=plus.webview.currentWebview().tag_id;
        var uid=plus.webview.currentWebview().uid;;
                //列表获取ajax
        myAjax('physical/activities/getDetail/','get',
                {
                    'id':tag_id,
                    'userId':uid
                },
                function(data) {
                    if (data.code==0) {
                    	console.log(JSON.stringify(data));
                    	var html=
			            		'<h2>'+data.data.name+'</h2>'+
							    '<p>'+data.data.create_time+'</p>'+
							    '<div id="main">'+data.data.content+'</div>';
							    
						$('.section').append(html);
						$('#main').find('img').each(function(){
							$(this).css({'width':'100%','height':'auto'});
						});
                    }
        		})
        
        

    })
</script>
</body>
</html>